import request from "@/utils/request";

export function newsSearch(name) {
    return request.post(`/newsEntity/newsSearch?name=${name}`);
}

export function newsListPage(page, pageSize) {
    return request.post(`/newsEntity/newsListPage?page=${page}&pageSize=${pageSize}`);
}

export function newsId(id) {
    return request.post(`/newsEntity/newsId?id=${id}`);
}

export function newsEditor(params) {
    return request.post(`/newsEntity/newsEditor`, params);
}

export function newsDelete(id) {
    return request.post(`/newsEntity/newsDelete?id=${id}`);
}

export function newsAppend(params) {
    return request.post(`/newsEntity/newsAppend`, params);
}

export function newsList() {
    return request.get(`/newsEntity/newsList`);
}

